﻿using System;

namespace SubsDownloader.Core.Entities
{
    public class LogRow
    {
        public DateTime Time { get; private set; }

        public string Message { get; private set; }


        internal LogRow (  string message )
        {
            Message = message;
            Time = DateTime.Now;
        }

        public override string ToString ()
        {
            var tostring = string.Format( "[{0}] {1}", Time.ToString( "yyy-MM-dd hh:MM:ss" ),  Message );
            return tostring;
        }
    }
}
